package com.taritari.journal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.taritari.journal.entity.po.SdImg;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author taritari
 * @date 2024-04-21 14:02
 * @description
 */
@Mapper
public interface SdImgMapper extends BaseMapper<SdImg> {
    @Insert("INSERT INTO sd_img  VALUES  (null, #{prompt}, #{imgUrl}, #{desc}, #{authorId}, NOW(), 0 )")
    long insertSdImg(String prompt, String imgUrl, String desc, String authorId);
}
